//
//  ViewController.m
//  NongLiDatePicker
//
//  Created by 俞乃胜 on 2023/12/15.
//

#import "ViewController.h"
#import "YNSDatePickerManager.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    UIButton *but = [[UIButton alloc]initWithFrame:CGRectMake(100, 101, 100, 100)];
    [but addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
    but.backgroundColor = [UIColor brownColor];
    [self.view addSubview:but];
}
- (void)click{
    
    YNSDatePickerManager *vc =[YNSDatePickerManager new];
    vc.modalPresentationStyle = UIModalPresentationOverFullScreen;
    [self presentViewController:vc  animated:NO completion:nil];

    
}

@end
